package at.jku.pervasive.recognition;

import java.util.Date;

import at.jku.pervasive.Helper;

public class Gesture
{

	protected final GestureType gestureType;
	protected Date timestamp;

	public Gesture(GestureType gestureType)
	{
		this(gestureType, Helper.now());
	}

	public Gesture(GestureType gestureType, Date timestamp)
	{
		super();
		this.gestureType = gestureType;
		this.timestamp = timestamp;
	}

	public GestureType getGestureType()
	{
		return gestureType;
	}

	public Date getTimestamp()
	{
		return timestamp;
	}

	@Override
	public String toString()
	{
		return "<gesture gestureType=\"" + gestureType.name() + "\" />";
	}

}
